// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** sendMessage POST /api/chat/add/message */
export async function sendMessageUsingPost(
  body: API.AiChatMessage,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseAiChat_>('/api/chat/add/message', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** ChatMessageByList POST /api/chat/my/list/message */
export async function chatMessageByListUsingPost(
  body: API.AiChatQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseListAiChat_>('/api/chat/my/list/message', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
